﻿using SIG.Core;
using SIG.Resources.Admin;

namespace SIG.Model.Emails
{
    public class EmailTemplate : AuditableEntity<int>
    {
        public EmailTemplate()
        {
            this.EntityName = EntityNames.EmailTemplate;
        }
        public string Subject { get; set; }
        public string Body { get; set; }
        public string TemplateNo { get; set; }
        public int EmailAccountId { get; set; }
        public virtual EmailAccount EmailAccount { get; set; }

        public string Email
        {
            get
            {
                if (this.EmailAccount != null)
                {
                    return this.EmailAccount.Email;
                }
                return string.Empty;
            }
        }

    }
}
